﻿// owner 蒋家伟

#include "DeviceRegisterHelper.h"

using namespace jsdk;

DeviceRegisterHelper * jsdk::DeviceRegisterHelper::get()
{
    static DeviceRegisterHelper s_DeviceRegisterHelper;
    return &s_DeviceRegisterHelper;
}

std::vector<DeviceCreatorFunc> jsdk::DeviceRegisterHelper::transOwnerShipCreators()
{
    return std::move(m_deviceCreators);
}

bool jsdk::DeviceRegisterHelper::registerCreator(DeviceCreatorFunc creator)
{
    m_deviceCreators.push_back(creator);
    return true;
}
